﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace fetco.entities
{
    public class WebSession
    {
        #region Parameter
        private long? _session_id;
        private long? _user_id;
        private string _login_name;
        private long? _time;
        #endregion

        #region Contructor
        public WebSession() { }
        public WebSession(
            long session_id,
            long user_id,
            string login_name,
            long time
            )
        {
            this._session_id = session_id;
            this._user_id = user_id;
            this._login_name = login_name;
            this._time = time;
        }
        #endregion

        #region Properties
        public static string TableName
        {
            get { return "websession";}
        }

        public long? SessionId
        {
            get { return this._session_id; }
            set { this._session_id = value; }
        }

        public long? UserId
        {
            get { return this._user_id; }
            set { this._user_id = value; }
        }

        public string LoginName
        {
            get { return this._login_name; }
            set { this._login_name = value; }
        }

        public long? Time
        {
            get { return this._time; }
            set { this._time = value; }
        }

        #endregion
    }

    public class ListWebSession : List<WebSession> { }

    public enum WebSessionField
    {
        SessionId,
        UserId,
        LoginName,
        Time
    }
}
